.class public Lcom/brixd/niceapp/activity/SplashActivity;
.super Landroid/app/Activity;
.source "SplashActivity.java"


# static fields
.field private static final SPLASH_DISPLAY_TIME:I = 0x5dc

.field private static final TAG:Ljava/lang/String; = "SplashActivity"


# instance fields
.field protected mHandler:Landroid/os/Handler;

.field private mHasRetry:Z

.field private mImageLoading:Landroid/widget/ImageView;

.field private mUserModel:Lcom/brixd/niceapp/model/UserModel;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 48
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 52
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mHandler:Landroid/os/Handler;

    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/SplashActivity;Lorg/json/JSONObject;)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/SplashActivity;
    .param p1, "x1"    # Lorg/json/JSONObject;

    .prologue
    .line 48
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/SplashActivity;->cacheCategoryData(Lorg/json/JSONObject;)V

    return-void
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/SplashActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/SplashActivity;

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->startNiceAppActivity()V

    return-void
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/activity/SplashActivity;)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/SplashActivity;

    .prologue
    .line 48
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mHasRetry:Z

    return v0
.end method

.method static synthetic access$202(Lcom/brixd/niceapp/activity/SplashActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/SplashActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 48
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mHasRetry:Z

    return p1
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/activity/SplashActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/SplashActivity;

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->showNetworkErrorDialog()V

    return-void
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/activity/SplashActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/SplashActivity;

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->initAppPortalData()V

    return-void
.end method

.method private cacheCategoryData(Lorg/json/JSONObject;)V
    .registers 3
    .param p1, "jo"    # Lorg/json/JSONObject;

    .prologue
    .line 132
    new-instance v0, Lcom/brixd/niceapp/activity/SplashActivity$2;

    invoke-direct {v0, p0, p1}, Lcom/brixd/niceapp/activity/SplashActivity$2;-><init>(Lcom/brixd/niceapp/activity/SplashActivity;Lorg/json/JSONObject;)V

    .line 136
    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/SplashActivity$2;->start()V

    .line 137
    return-void
.end method

.method private checkCachedData()V
    .registers 7

    .prologue
    .line 168
    invoke-static {}, Lcom/brixd/niceapp/util/LocalCacheUtils;->getPortalData()Lorg/json/JSONObject;

    move-result-object v0

    .line 169
    .local v0, "jsonData":Lorg/json/JSONObject;
    if-nez v0, :cond_22

    .line 171
    const-string v1, "SplashActivity"

    const-string v2, "First time open, init data first"

    invoke-static {v1, v2}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;Ljava/lang/String;)V

    .line 172
    iget-object v1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mImageLoading:Landroid/widget/ImageView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 173
    iget-object v1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mImageLoading:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    check-cast v1, Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v1}, Landroid/graphics/drawable/AnimationDrawable;->start()V

    .line 174
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->initAppPortalData()V

    .line 183
    :goto_21
    return-void

    .line 176
    :cond_22
    iget-object v1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mHandler:Landroid/os/Handler;

    new-instance v2, Lcom/brixd/niceapp/activity/SplashActivity$3;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/SplashActivity$3;-><init>(Lcom/brixd/niceapp/activity/SplashActivity;)V

    const-wide/16 v4, 0x5dc

    invoke-virtual {v1, v2, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_21
.end method

.method private checkConfigInfo()V
    .registers 5

    .prologue
    .line 190
    iget-object v2, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    if-nez v2, :cond_1f

    const/4 v1, 0x0

    .line 191
    .local v1, "userId":I
    :goto_5
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/service/restful/ConfigRestfulRequest;

    invoke-virtual {v2, v3}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/service/restful/ConfigRestfulRequest;

    .line 192
    .local v0, "request":Lcom/brixd/niceapp/service/restful/ConfigRestfulRequest;
    const/4 v2, 0x2

    new-instance v3, Lcom/brixd/niceapp/activity/SplashActivity$4;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/SplashActivity$4;-><init>(Lcom/brixd/niceapp/activity/SplashActivity;)V

    invoke-interface {v0, v2, v1, v3}, Lcom/brixd/niceapp/service/restful/ConfigRestfulRequest;->queryConfig(IILretrofit/Callback;)V

    .line 204
    return-void

    .line 190
    .end local v0    # "request":Lcom/brixd/niceapp/service/restful/ConfigRestfulRequest;
    .end local v1    # "userId":I
    :cond_1f
    iget-object v2, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v1

    goto :goto_5
.end method

.method private checkMessages()V
    .registers 2

    .prologue
    .line 207
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    if-eqz v0, :cond_9

    .line 208
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-static {v0}, Lcom/brixd/niceapp/service/UserService;->checkMessages(Lcom/brixd/niceapp/model/UserModel;)V

    .line 210
    :cond_9
    return-void
.end method

.method private checkStatistics()V
    .registers 2

    .prologue
    .line 186
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/sys/service/StatisticsFollowUpService;->start(Landroid/content/Context;)V

    .line 187
    return-void
.end method

.method private initAppPortalData()V
    .registers 5

    .prologue
    const/4 v3, 0x2

    .line 213
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v1

    const-class v2, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v1, v2}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 214
    .local v0, "request":Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    invoke-static {}, Lcom/brixd/niceapp/service/UserService;->getLoginUserId()I

    move-result v1

    new-instance v2, Lcom/brixd/niceapp/activity/SplashActivity$5;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/SplashActivity$5;-><init>(Lcom/brixd/niceapp/activity/SplashActivity;)V

    invoke-interface {v0, v3, v1, v3, v2}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->listPortalData(IIILretrofit/Callback;)V

    .line 236
    return-void
.end method

.method private initData()V
    .registers 4

    .prologue
    .line 95
    :try_start_0
    invoke-static {p0}, Lcom/brixd/niceapp/application/NiceAppApplication;->initImageLoader(Landroid/content/Context;)V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_3} :catch_1e

    .line 100
    :goto_3
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->checkCachedData()V

    .line 101
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->logUser()V

    .line 102
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->updateUserTrack()V

    .line 103
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->checkConfigInfo()V

    .line 104
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->checkMessages()V

    .line 105
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->checkStatistics()V

    .line 106
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->updateCategoryInfo()V

    .line 109
    sget-object v1, Lcom/brixd/niceapp/util/LocalCacheUtils;->ViewedCommunityAppsSet:Ljava/util/HashSet;

    invoke-virtual {v1}, Ljava/util/HashSet;->clear()V

    .line 110
    return-void

    .line 96
    :catch_1e
    move-exception v0

    .line 97
    .local v0, "e":Ljava/io/IOException;
    const-string v1, "error_init_image"

    const-string v2, "splash"

    invoke-static {p0, v1, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_3
.end method

.method private logUser()V
    .registers 7

    .prologue
    .line 147
    invoke-static {}, Lcom/brixd/niceapp/service/UserService;->getLoginUser()Lcom/brixd/niceapp/model/UserModel;

    move-result-object v1

    iput-object v1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    .line 148
    iget-object v1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    if-eqz v1, :cond_bd

    .line 149
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 150
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v1, "UserName"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/UserModel;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 151
    const-string v1, "UserId"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 152
    const-string v1, "UserNick"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/UserModel;->getNick()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 153
    const-string v1, "WeiboUid"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/UserModel;->getWeiboUid()J

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 154
    const-string v1, "OpenId"

    iget-object v2, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/UserModel;->getOpenId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 155
    const-string v1, "Platform"

    iget-object v2, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/UserModel;->getPlatform()Lcom/brixd/niceapp/service/LoginService$SNSPlatform;

    move-result-object v2

    invoke-virtual {v2}, Lcom/brixd/niceapp/service/LoginService$SNSPlatform;->name()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 157
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "LaunchAppUserInfo"

    invoke-static {v1, v2, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    .line 159
    iget-object v1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/UserModel;->getPlatform()Lcom/brixd/niceapp/service/LoginService$SNSPlatform;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/service/LoginService$SNSPlatform;->QQ:Lcom/brixd/niceapp/service/LoginService$SNSPlatform;

    if-ne v1, v2, :cond_be

    .line 160
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "LaunchAppQQUser"

    invoke-static {v1, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 165
    .end local v0    # "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    :cond_bd
    :goto_bd
    return-void

    .line 161
    .restart local v0    # "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    :cond_be
    iget-object v1, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/UserModel;->getPlatform()Lcom/brixd/niceapp/service/LoginService$SNSPlatform;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/service/LoginService$SNSPlatform;->Weibo:Lcom/brixd/niceapp/service/LoginService$SNSPlatform;

    if-ne v1, v2, :cond_bd

    .line 162
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "LaunchAppWeiboUser"

    invoke-static {v1, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_bd
.end method

.method private showNetworkErrorDialog()V
    .registers 7

    .prologue
    const/4 v5, 0x0

    .line 239
    const v1, 0x7f0c00ac

    .line 240
    .local v1, "networkError":I
    const v2, 0x7f0c0113

    .line 241
    .local v2, "tryAgain":I
    new-instance v3, Landroid/app/AlertDialog$Builder;

    invoke-direct {v3, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v3, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    new-instance v4, Lcom/brixd/niceapp/activity/SplashActivity$6;

    invoke-direct {v4, p0}, Lcom/brixd/niceapp/activity/SplashActivity$6;-><init>(Lcom/brixd/niceapp/activity/SplashActivity;)V

    invoke-virtual {v3, v2, v4}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v3

    .line 249
    invoke-virtual {v3}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 250
    .local v0, "alertDialog":Landroid/app/Dialog;
    invoke-virtual {v0, v5}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 251
    invoke-virtual {v0, v5}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 253
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getContext()Landroid/content/Context;

    move-result-object v3

    if-eqz v3, :cond_32

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->isFinishing()Z

    move-result v3

    if-nez v3, :cond_32

    .line 254
    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 256
    :cond_32
    return-void
.end method

.method private startNiceAppActivity()V
    .registers 3

    .prologue
    .line 259
    invoke-static {}, Lcom/brixd/niceapp/util/LocalCacheUtils;->isGuidePageViewed()Z

    move-result v1

    if-eqz v1, :cond_11

    .line 260
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/brixd/niceapp/activity/NiceAppContentActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 261
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SplashActivity;->startActivity(Landroid/content/Intent;)V

    .line 266
    :goto_10
    return-void

    .line 263
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_11
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/brixd/niceapp/activity/GuideActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 264
    .restart local v0    # "intent":Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SplashActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_10
.end method

.method private updateCategoryInfo()V
    .registers 4

    .prologue
    .line 113
    invoke-static {p0}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v1

    const-class v2, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v1, v2}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 114
    .local v0, "request":Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    const/4 v1, 0x2

    new-instance v2, Lcom/brixd/niceapp/activity/SplashActivity$1;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/SplashActivity$1;-><init>(Lcom/brixd/niceapp/activity/SplashActivity;)V

    invoke-interface {v0, v1, v2}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->listCategoryApps(ILretrofit/Callback;)V

    .line 129
    return-void
.end method

.method private updateUserTrack()V
    .registers 2

    .prologue
    .line 140
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    if-nez v0, :cond_5

    .line 144
    :goto_4
    return-void

    .line 143
    :cond_5
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v0

    invoke-static {v0}, Lcom/brixd/niceapp/service/UserService;->updateUserTrack(I)V

    goto :goto_4
.end method


# virtual methods
.method protected getContext()Landroid/content/Context;
    .registers 1

    .prologue
    .line 58
    return-object p0
.end method

.method public onAppExit(Lcom/brixd/niceapp/bus/event/AppExitEvent;)V
    .registers 2
    .param p1, "event"    # Lcom/brixd/niceapp/bus/event/AppExitEvent;
    .annotation runtime Lcom/squareup/otto/Subscribe;
    .end annotation

    .prologue
    .line 271
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->finish()V

    .line 272
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "bundle"    # Landroid/os/Bundle;

    .prologue
    .line 79
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 80
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SplashActivity;->requestWindowFeature(I)Z

    .line 81
    const/4 v0, 0x0

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->openActivityDurationTrack(Z)V

    .line 82
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/sdk/analytics/ZMMobEventAgent;->onUpdateDataOnline(Landroid/content/Context;)V

    .line 84
    const v0, 0x7f03001c

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SplashActivity;->setContentView(I)V

    .line 86
    const v0, 0x7f0a006b

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SplashActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/brixd/niceapp/activity/SplashActivity;->mImageLoading:Landroid/widget/ImageView;

    .line 87
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/squareup/otto/Bus;->register(Ljava/lang/Object;)V

    .line 89
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SplashActivity;->initData()V

    .line 90
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 71
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 73
    const-string v0, "SplashActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 74
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 75
    return-void
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 63
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 65
    const-string v0, "SplashActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 66
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 67
    return-void
.end method
